﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<FriendTest.Models.MyComment>>" %>
    <ul>
    <% foreach (var item in Model) { %>
        <li id="commentlist_item" style="margin: 20px 0px 0px 0px">
        <img src="../../Content/<%=item.commentFrom.userName%>.jpg" width='50' alt='头像' align='left' />
        <%=Html.ActionLink(item.commentFrom.userName, "Profile", new { ID=item.commentFrom.id})%> 
            <%=item.commentContent%><br /> 
        <%=item.commentDate %><br />
        </li>  
    <% } %>
    </ul>

